<html>
<#include  "../common/header.ftl">
<body>
<div id="wrapper" class="toggled">

    <!--边栏 -->
<#include  "../common/nav.ftl">

    <!-- 主体内容-->
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <table class="table table-bordered table-condensed">
                        <thead>
                        <tr>
                            <th>商家编号</th>
                            <th>商家code</th>
                            <th>openid</th>
                            <th>商家名称</th>
                            <th>负责人姓名</th>
                            <th>商家商品</th>
                            <th>商家种类</th>
                            <th>业态</th>
                            <th>商家地址</th>
                            <th>商家电话</th>
                            <th>商家位置</th>
                            <th>商家介绍</th>
                            <th>联系方式</th>
                            <th>店铺状态</th>
                            <th colspan="2">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <#list bussinessPage.content as bussinessInfo>
                        <tr>
                            <td>${bussinessInfo.bussinessId}</td>
                            <td>${bussinessInfo.bussinessCode}</td>
                            <td>${bussinessInfo.openid}</td>
                            <td>${bussinessInfo.bussinessName}</td>
                            <td>${bussinessInfo.bussinessUserName}</td>
                            <td>${bussinessInfo.bussinessProduct}</td>
                            <td>${bussinessInfo.bussinessCategory}</td>
                            <td>${bussinessInfo.bussinessRank}  </td>
                            <td>${bussinessInfo.bussinessAddress}</td>
                            <td>${bussinessInfo.bussinessPhone}</td>
                            <td>${bussinessInfo.bussinessPosition}</td>
                            <td>${bussinessInfo.bussinessIntroduce}</td>
                            <td>${bussinessInfo.telephone}</td>
                            <td>${bussinessInfo.getBussinessStatusEnum().message}</td>
                            <td>
                                <a href="/fanZone/seller/bussiness/detail?bussinessCode=${bussinessInfo.bussinessCode}">详情</a>
                            </td>
                            <td>
                                <a href="/fanZone/seller/bussiness/close?bussinessId=${bussinessInfo.bussinessId}&bussinessCode=${bussinessInfo.bussinessCode}">关店</a>
                            </td>
                        </tr>
                        </#list>

                        </tbody>
                    </table>
                </div>
                <div class="col-md-12 column">
                    <ul class="pagination pull-right">
                    <#if currentPage lte 1>
                        <li class="disabled"><a href="#">上一页</a></li>
                    <#else>
                        <li ><a href="/fanZone/seller/bussiness/list?page=${currentPage-1}&size=${size}">上一页</a></li>
                    </#if>

                    <#list 1..bussinessPage.getTotalPages() as index>
                        <#if currentPage==index>
                            <li class="disabled"><a href="#">${index}</a></li>
                        <#else >
                            <li><a href="/fanZone/seller/bussiness/list?page=${index}&size=${size}">${index}</a></li>

                        </#if>
                    </#list>
                    <#if currentPage gte bussinessPage.getTotalPages()>
                        <li class="disabled"><a href="#">下一页</a></li>
                    <#else>
                        <li ><a href="/fanZone/seller/bussiness/list?page=${currentPage+1}&size=${size}">下一页</a></li>
                    </#if>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
